<div class="list">
    <table>
        <thead>
            <tr>
                <g:sortableColumn property="serialNumber" title="Serial Number" titleKey="pickplan.serialNumber" />
                <g:sortableColumn property="date" title="Date" titleKey="pickplan.date" />
                <th><g:message code="pickplan.maker" default="Maker" /></th>
                <th><g:message code="pickplan.dealer" default="Dealer" /></th>
                <th><g:message code="pickplan.director" default="Director" /></th>
            </tr>
        </thead>
        <tbody>
        <g:each in="${pickplanInstanceList}" status="i" var="pickplanInstance">
            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                <td><g:link action="show" id="${pickplanInstance.id}">${fieldValue(bean: pickplanInstance, field: "serialNumber")}</g:link></td>
                <td><g:link action="show" id="${pickplanInstance.id}"><g:formatDate date="${pickplanInstance.date}" format="yyyy-MM-dd" /></g:link></td>
                <td><g:link action="show" id="${pickplanInstance.id}">${fieldValue(bean: pickplanInstance, field: "maker")}</g:link></td>
                <td><g:link action="show" id="${pickplanInstance.id}">${fieldValue(bean: pickplanInstance, field: "dealer")}</g:link></td>
                <td><g:link action="show" id="${pickplanInstance.id}">${fieldValue(bean: pickplanInstance, field: "director")}</g:link></td>
            </tr>
        </g:each>
        </tbody>
    </table>
</div>
